package com.example.aerospacemanagementsystem.service.personnelService.impl;


import com.example.aerospacemanagementsystem.entity.personnel.Employee;
import com.example.aerospacemanagementsystem.mapper.personnelMapper.EmployeeMapper;
import com.example.aerospacemanagementsystem.service.personnelService.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 吴欣悦
* @description 针对表【employee】的数据库操作Service实现
* @createDate 2023-11-03 11:27:30
*/
@Service
public class EmployeeServiceImpl implements EmployeeService{
    @Autowired
    private EmployeeMapper employeeMapper;

    @Override
    public int add(Employee employee) {
        return employeeMapper.insert(employee);
    }

    @Override
    public int delete(Employee employee) {
        return employeeMapper.delete(employee);
    }

    @Override
    public int update(Employee employee) {
        return employeeMapper.update(employee);
    }

    @Override
    public List<Employee> getAllEmployee(Employee employee) {
        return employeeMapper.getAllEmployee(employee);
    }

}




